package com.hugh.lagouservicecode.service.impl;

import com.hugh.lagou.code.GenerateCodeService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @Author: Hugh
 * @Date: 2020/7/21
 */
@Slf4j
@Component
@Service(interfaceClass = GenerateCodeService.class)
public class GenerateCodeServiceImpl implements GenerateCodeService {

    @Override
    public Integer generate() {
        return (int)((Math.random()*9+1)*100000);
    }
}
